package com.fiveGroup.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.fiveGroup.pojo.Product;
import com.fiveGroup.pojo.vo.ProductAuditVo;
import com.fiveGroup.pojo.vo.ProductVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 86188
 * @description 针对表【product(商品基本信息表)】的数据库操作Mapper
 * @createDate 2025-09-26 15:01:12
 * @Entity com.fiveGroup.pojo.Product
 */
public interface ProductMapper extends BaseMapper<Product> {

    List<ProductVo> listAll(IPage<ProductVo> productIPage, @Param(Constants.WRAPPER) QueryWrapper<Product> queryWrapper);

    ProductVo getGoodById(Long id);

    List<ProductAuditVo> productAndImageList(IPage<Product> productIPage);
}




